import React, { useEffect, useState } from 'react'
import './index.scss'

const TitleAllow = (props: any) => {

  const { title, showMore, moreText } = props

  return (
    <div className='title-allow'>
      <span className='title-allow-title'>{ title }</span>
      {
        showMore && <div className='title-allow-more'>
        <span>{ moreText }</span>
        <i className='iconfont icon-you title-allow-more-icon'></i>
      </div>
      }
    </div>
  )
}

export default TitleAllow